import { useState } from 'react'
function useFormValue(initValue = '') {
    const [value, setValue] = useState(initValue);
    const onChange = (e) => {
        setValue(e.target.value);
    }
    return [value, onChange]
}

export default useFormValue;